home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 247 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. From: Chudail@msn.com (Manish Katyal)
  2. Subject: Question:Stacks, Heaps, DGROUPs and other horrors
  3. Date: 3 Jan 96 02:34:02 -0800
  4. Message-ID: <00001a81+000086de@msn.com>
  5. Path: news.msn.com!msn.com
  6. Newsgroups: comp.lang.c++
  7. Organization: The Microsoft Network (msn.com)
  8.  
  9. Hi,
  10.   I'm using VC++ 1.5. 
  11. I keep getting the error : Automatic data segment plus Heap size exceeds 64K.
  12. To resolve this, in my DEF file I now have 
  13. HEAP MAXVAL
  14. STACK 15000
  15.  
  16. My question is :
  17. 1) HEAP + STACK + DGROUP == 64K ????
  18. And if so, which one of these do I want more of ???
  19. Also, am I right in the assumption that dynamically created objects 
  20. are placed on the HEAP and Compiler created objs on the stack ???
  21.  
  22. 2) My app is one huge single obj ( placed all my classes and their 
  23. member functions in header files and included them in my main file). 
  24. So, is there an advantage in splitting the obj into several objs 
  25. other than the obvious advantages of faster compiling and linking 
  26. ???? Do each of the objs have their own HEAP/STACK whatever ????
  27.  
  28. I'd appreciate your comments,
  29.    Manish K.
  30.  
  31. PS: I'm using the large memory model.
  32.